import { ref } from "vue";

export function FormDialogVisible() {
  // 新增、编辑窗口的显示状态.
  const submitFormVisible = ref(false);
  const changeSubmitFormVisible = () => {
    submitFormVisible.value = !submitFormVisible.value;
  };
  const setSubmitFormVisibleTrue = () => {
    submitFormVisible.value = true;
  };
  const setSubmitFormVisibleFalse = () => {
    submitFormVisible.value = false;
  };
  return {
    submitFormVisible,
    changeSubmitFormVisible,
    setSubmitFormVisibleTrue,
    setSubmitFormVisibleFalse,
  };
}
